package com.example.yy.helloword0001;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //
        setContentView(R.layout.activity_main);

        //线性布局
        //setContentView(R.layout.linear_layout);
        //相对布局
        //setContentView(R.layout.relative_layout);

        //TextView
        //setContentView(R.layout.my_text_view);
    }
    public void goToolbar(View v){
        Intent intent = new Intent(MainActivity.this,MyToolBarActivity.class);
        startActivity(intent);
    }
    public void goDrawer(View v){
        Intent intent = new Intent(MainActivity.this,MyDrawerActivity.class);
        startActivity(intent);
    }

    //进度条
    public void goProgressbar(View v){
        Intent intent = new Intent(MainActivity.this,MyProgressBar.class);
        startActivity(intent);
    }

    //进度条
    public void goTextview(View v){
        Intent intent = new Intent(MainActivity.this,MyTextView.class);
        startActivity(intent);
    }
}
